# 头文件所在地址
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/mylib)

# 设置了可执行文件在项目根目录下的bin
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)

# 
AUX_SOURCE_DIRECTORY(./ DIR_SRCS)

ADD_EXECUTABLE(demo4 ${DIR_SRCS})

TARGET_LINK_LIBRARIES(demo4 Mylib)
